package com.example.service;

import com.example.dao.UserDao;
import com.example.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Huangyt
 * @version 1.0
 * @date 2020/7/20 13:05
 */

@Service
public class UserService {
    @Autowired
    UserDao userDao;

    public List<User> findAll(){
        return userDao.findAll();
    }

}
